package base.exa15;

public class ShowInnerClass {

    public ShowInnerClass.InnerClass InnerClass;
    private int data;
    private int num;
    private void methodOne(){
        System.out.println("Hello world");
    }

    public ShowInnerClass(){
        InnerClass = new InnerClass();
    }

    /**
     * InnerClass是ShowInnerClass的内部类
     */
     class InnerClass{
         private int num2;
         protected int age;
         public void method(){
            data++;
            methodOne();
        }
    }

}
